package org.example.template.improve;

/**
 * @author wangbin
 * @date 2024/4/18
 * @vesion 1.0
 */
public abstract class SoyMilk {
    final void made(){
        this.addCondiments();
        if(this.custFlag()){
            this.select();
        }
    }

    public void addCondiments() {
        System.out.println("addCondiments");
    }

    public void select() {
        System.out.println("select");

    }

    public abstract  void drank();

    boolean custFlag(){
        return true;
    }
}
